import allure
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from Base.DriverCreat import DriverCreat
from Base.Log import Log
from Base.Single import Single


class PhoneDriver(Single):
    def __init__(self,driver):
        self.driver = driver

    def wait(self,waitTime=10):
        if type(waitTime).__name__!='int':
            waitTime=0
        return WebDriverWait(self.driver,waitTime)

    def info(self,message):

        Log().info(message)


if __name__ == '__main__':
    driver=DriverCreat().init_webdriver()
    PhoneDriver(driver).clickOn((By.ID,'iv_add_devices'))